package com.example.demo.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
@ConfigurationProperties("dbtypes2")
public class DbType {
    private List<String> name; // 注意这里的名字和配置文件中保持一致！
}
